import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [{
    path: '/',
    name: '/',
    component: resolve => require(['@/components/home'], resolve),
    redirect: "one",
    children: [{
      path: 'one',
      name: 'info',
      meta: {
        keepAlive: false,
        title: "运费模板"
      },
      component: resolve => require(['@/components/main/yunfeiMuban'], resolve)
    },
    {
      path: 'TwoYunfeimuban',
      name: 'classs',
      meta: {
        keepAlive: false,
        title: "新建单品"
      },
      component: resolve => require(['@/components/main/yunfeimoban'], resolve),
    },
    {
      path: 'two',
      name: 'shoes',
      component: resolve => require(['@/components/main/yundanMuban'], resolve),
      meta: {
        title: "运单模板"
      }
    },
    {
      path: 'yundanmoban',
      name: 'carts',
      component: resolve => require(['@/components/main/yundanmoban'], resolve),
      meta: {
        title: "运单新建"
      }
    },
    {
      path: 'my',
      name: 'my',
      component: resolve => require(['@/components/main/my'], resolve),
      meta: {
        title: "我的"
      }
    },

    ]
  }]
})



export default router;
